# 测试文件

import requests

url = "https://www.douyin.com/aweme/v1/play/?video_id=v0300fg10000clsh8gjc77u9hu21ukrg"

payload={}
headers = {
   'pragma': 'no-cache',
   'priority': 'u=0, i',
   'sec-fetch-user': '?1',
   'upgrade-insecure-requests': '1',
   'Cookie': 'passport_csrf_token=b78f3e54b1f5319760ac6d84cfad87be; passport_csrf_token_default=b78f3e54b1f5319760ac6d84cfad87be; ttwid=1%7CFSTx67yXGUSILXZdzGHhfGi1outUH4z65weEICOXT9w%7C1727391302%7C073c5164ae0e499ec948bb2d4421f6293cdb81e8494a9e11df91f9e64e26fdd8; UIFID_TEMP=60b2ef133e5e740633c50bb923c1ddfcacd13dfeee1bbba287269d01840b457b00c2d7a8b64bca16e2b1850e977038f4c51b4bb340e81dd7df59e1e17e2f8bc0ac4f92327a2141d93729da766ed24f4b; s_v_web_id=verify_m1jw6kae_azLFNoMB_QuJm_44qN_9I7p_dmqUn7iQClYa; hevc_supported=true; xgplayer_user_id=472892181293; fpk1=U2FsdGVkX19ce/C1cPwgT9rGcSvJa5LlwA/utye/yKqrOyIePXAFRuGnrcEwfRRmvB4h/4NHMTwf1rP1KFIkig; fpk2=16453d6e2683b8800ded2a27c7f595d9; bd_ticket_guard_client_web_domain=2; UIFID=60b2ef133e5e740633c50bb923c1ddfcacd13dfeee1bbba287269d01840b457b00c2d7a8b64bca16e2b1850e977038f4fd1c6d1a66bc18c4b75f90465f0d94370a16eb357f153334562f76811caf08e3aee58da254652a177d40a169fc6008ef1f6633647d524008e4af560cc9c996bf1c57343d71a19bd5d8ae7e28266d824a84fcd7bafad8d591bd1eca5cbcc3401ee49ac3eea34316742eec4729f32590ac; SelfTabRedDotControl=%5B%5D; _bd_ticket_crypt_doamin=2; __security_server_data_status=1; store-region-src=uid; volume_info=%7B%22isUserMute%22%3Afalse%2C%22isMute%22%3Afalse%2C%22volume%22%3A0.28%7D; SEARCH_RESULT_LIST_TYPE=%22single%22; dy_swidth=1536; dy_sheight=864; device_web_cpu_core=16; device_web_memory_size=8; architecture=amd64; douyin.com; FORCE_LOGIN=%7B%22isForcePopClose%22%3A1%2C%22videoConsumedRemainSeconds%22%3A180%7D; csrf_session_id=0a621d0be15bd2e332004c319dc02d5c; my_rd=2; home_can_add_dy_2_desktop=%220%22; download_guide=%223%2F20241011%2F1%22; x-web-secsdk-uid=fea6799f-d8fc-4258-8646-1da4abb0cfa9; n_mh=cICISMVti81XDP9Zx-cLSWV9K3kK0oXcPVRPr68_Ea0; store-region=bd; passport_mfa_token=CjULga4Hp%2BMlb5Ir3opIPeaOeg%2BbHZaZJhHOPlDTKlCmL9IFqeLfa03hWQ3eyYxstcWQiABaWBpKCjzxom3Wy76Lkc0%2FNrXAM4Whcw5ltaY3s881ArItiyDiktCjvNS6Dk4wBjVxYSbyj9FllJ4x9Tt5lAjQY2EQv8%2FeDRj2sdFsIAIiAQMUswWs; d_ticket=76b6f4c994038e96a92612c8739e1e3f0398d; pwa2=%220%7C0%7C1%7C1%22; passport_auth_status=8acd6024113b2046ad852081307b7ca2%2C66c69b20fb081f1e3aa97d1652bca058; passport_auth_status_ss=8acd6024113b2046ad852081307b7ca2%2C66c69b20fb081f1e3aa97d1652bca058; is_staff_user=false; _bd_ticket_crypt_cookie=c9795400de6583a6aaba844150cdf803; publish_badge_show_info=%220%2C0%2C0%2C1729004993917%22; WallpaperGuide=%7B%22showTime%22%3A1729005043116%2C%22closeTime%22%3A0%2C%22showCount%22%3A2%2C%22cursor1%22%3A53%2C%22cursor2%22%3A16%2C%22hoverTime%22%3A1729005054743%7D; vdg_s=1; FOLLOW_LIVE_POINT_INFO=%22MS4wLjABAAAA6kVSb9XGk-zMR4eyVUZMQlhOkfvPFY5ExS8RBnnUDkI%2F1729008000000%2F0%2F0%2F1729007245033%22; strategyABtestKey=%221729008638.033%22; FOLLOW_NUMBER_YELLOW_POINT_INFO=%22MS4wLjABAAAA6kVSb9XGk-zMR4eyVUZMQlhOkfvPFY5ExS8RBnnUDkI%2F1729094400000%2F0%2F1729008638190%2F0%22; stream_recommend_feed_params=%22%7B%5C%22cookie_enabled%5C%22%3Atrue%2C%5C%22screen_width%5C%22%3A1536%2C%5C%22screen_height%5C%22%3A864%2C%5C%22browser_online%5C%22%3Atrue%2C%5C%22cpu_core_num%5C%22%3A16%2C%5C%22device_memory%5C%22%3A8%2C%5C%22downlink%5C%22%3A10%2C%5C%22effective_type%5C%22%3A%5C%224g%5C%22%2C%5C%22round_trip_time%5C%22%3A50%7D%22; sid_guard=4aebb156e8c7f276df13d9b3e52a6ce9%7C1729058929%7C21600%7CWed%2C+16-Oct-2024+12%3A08%3A49+GMT; uid_tt=30177ab932b9ffde5e1dc9fd6a083527; uid_tt_ss=30177ab932b9ffde5e1dc9fd6a083527; sid_tt=4aebb156e8c7f276df13d9b3e52a6ce9; sessionid=4aebb156e8c7f276df13d9b3e52a6ce9; sessionid_ss=4aebb156e8c7f276df13d9b3e52a6ce9; sid_ucp_v1=1.0.0-KDZjOGFhZGEyOTllNWI5Nzc3ZTJjZTYxN2QzOGUzYzc4ZDdmNzQ3M2UKCBDxsL24BhgNGgJscSIgNGFlYmIxNTZlOGM3ZjI3NmRmMTNkOWIzZTUyYTZjZTk; ssid_ucp_v1=1.0.0-KDZjOGFhZGEyOTllNWI5Nzc3ZTJjZTYxN2QzOGUzYzc4ZDdmNzQ3M2UKCBDxsL24BhgNGgJscSIgNGFlYmIxNTZlOGM3ZjI3NmRmMTNkOWIzZTUyYTZjZTk; __ac_nonce=0670f79fa008b2ce75f90; __ac_signature=_02B4Z6wo00f01bNw3bQAAIDAbwlCAUEChlmzUNkAAAvU6c; bd_ticket_guard_client_data=eyJiZC10aWNrZXQtZ3VhcmQtdmVyc2lvbiI6MiwiYmQtdGlja2V0LWd1YXJkLWl0ZXJhdGlvbi12ZXJzaW9uIjoxLCJiZC10aWNrZXQtZ3VhcmQtcmVlLXB1YmxpYy1rZXkiOiJCS2pXbnNKY3YvbXZtOWlzaERtdG5lbGtVNHZHUG8rSzhvcFlGRXRJRXdTcjk4aW01SWluNkorYkRaT2V4ZXNZU2FPYVZBMU4vZmx5K3FzL25IVUVHWlk9IiwiYmQtdGlja2V0LWd1YXJkLXdlYi12ZXJzaW9uIjoyfQ%3D%3D; odin_tt=a60ad8c5f20d4cadbbd4f81b3e01499d160b90fa47c43f7b7daa08bb6efa77f1beb0840973caa9c90e52bdeb43fec5b2d40bea3ee8d6e9f4b0cd2bd040488c968b6bb1c981294db74aa03f6644314918; biz_trace_id=4dfa7133; IsDouyinActive=false; stream_player_status_params=%22%7B%5C%22is_auto_play%5C%22%3A0%2C%5C%22is_full_screen%5C%22%3A0%2C%5C%22is_full_webscreen%5C%22%3A0%2C%5C%22is_mute%5C%22%3A0%2C%5C%22is_speed%5C%22%3A1%2C%5C%22is_visible%5C%22%3A0%7D%22; xg_device_score=7.6883778912304805',
   'user-agent': 'Mozilla/5.0 (Linux; Android 8.0.0; SM-G955U Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36',
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)